﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;

namespace pdtransport_v2._0.Areas.back.Controllers
{
    public class HelpController : Controller
    {
        //
        // GET: /back/Help/

        public string Encrypt(string str)
        {
            // encrypted password
            MD5 md5 = MD5.Create();
            byte[] data = md5.ComputeHash(Encoding.UTF8.GetBytes(str));
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < data.Length; i++)
            {
                sb.Append(data[i].ToString("x2"));
            }
            string encrypt_str = sb.ToString();
            return encrypt_str;
        }
        public ActionResult Index()
        {
            return View();
        }

    }
}
